package com.goktech.olala.core.service;

import com.github.pagehelper.PageInfo;
import com.goktech.olala.core.req.ReqBusiness;
import com.goktech.olala.core.resp.RespBusinessVo;
import com.goktech.olala.server.pojo.customer.CtmLevelInfo;
import com.goktech.olala.server.pojo.goods.Business;
import com.goktech.olala.server.pojo.order.OrderDetail;

/**
 * @author wusq
 * 店铺（商家）service层接口
 */
public interface IBusinessService {

    /**
     * 查询店铺信息
     * @param pageIndex
     * @param pageSize
     * @param reqBusiness
     * @return
     * @throws Exception
     */
    PageInfo<RespBusinessVo> queryBusiness(int pageIndex, int pageSize, ReqBusiness reqBusiness) throws Exception;
    /**
     * 保存店铺信息
     * @param reqBusiness
     * @return
     * @throws Exception
     */
    int saveBusiness(ReqBusiness reqBusiness) throws Exception;

    /**
     * 根据主键查询店铺信息
     * @param businessId
     * @return
     * @throws Exception
     */
    RespBusinessVo queryBusinessById(String businessId) throws Exception;

    /**
     * 删除店铺信息
     * @param businessId
     * @return
     * @throws Exception
     */
    int removeBusinessById(String businessId)throws Exception;
}
